<?php
/**
 * Created by PhpStorm.
 * User: l
 * Date: 2018/10/22
 * Time: 17:58
 */
namespace app\models;
use yii\db\ActiveRecord;

class Gl_city extends ActiveRecord{

    public function getCities(){
        $result = Gl_city::find()->where(['<>','city_code',0])->asArray()->all();
        return $result;
    }

}